<?

//Savoir faire pour les smileys
$query ="SELECT count(*)FROM cdn_forum_smiley ";
$resultat=mysql_query($query);
$tmp="";



$query ="SELECT smiley_id,smiley_txt,smiley_icon,smiley_comment FROM cdn_forum_smiley LIMIT 0, 16";
$resultat=mysql_query($query);

$TMP="<DIV NAME=\"div_smiley\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";

  
$TR=0;
$TD=0;
WHILE ($smiley =mysql_fetch_array($resultat) ){
       IF ($TD==0){ $TMP.="<tr>";}
      $smiley[1]=addslashes($smiley[1]);
     $TMP.= "<td><center><a href=\"javascript:AddText('','$smiley[1]','');\"; onMouseOver=\"HELP1(text_enter_smiley)\"; onMouseOut=\"HELP1(empty)\"><img src=\"images/smiles/$smiley[2]\" border=\"0\" TILES=\"$smiley[3]\"></a></center></td>";
      $TD++;
      IF ($TD==4) {$TMP.="</tr>";$TD=0;}
}//Fin du while smiley
$TMP.= "</table></div>";
ECHO $TMP;



?>
